package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.annotation.Excel;
import com.ly.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 客户/供应商银行账号信息
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_bank_info")
@ApiModel (value = "客户/供应商/烈阳公司银行账号信息", description = "客户/供应商/烈阳公司银行账号信息")
public class BankEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /** 开户国家 */
    @TableField("opening_country")
    @ApiModelProperty("开户国家")
    @Excel(name = "开户国家")
    private String openingCountry;

    @ApiModelProperty ("开票公司名称")
    @TableField ("invoicing_company_name")
    private String invoicingCompanyName;

    /** 账户名称 */
    @TableField("account_name")
    @ApiModelProperty("账户名称")
    @Excel(name = "账户名称")
    private String accountName;

    @ApiModelProperty ("税号，判重")
    @TableField ("tax_id")
    private String taxId;

    /** 收款银行 */
    @TableField("due_banke")
    @ApiModelProperty("收款银行")
    @Excel(name = "收款银行")
    private String dueBanke;


    /** 开户银行 */
    @TableField("bank_name")
    @ApiModelProperty("开户银行")
    @Excel(name = "开户银行")
    private String bankName;

    @TableField("bank_account")
    @ApiModelProperty("银行账号")
    @Excel(name = "银行账号")
    private String bankAccount;

    /** 银行网点 */
    @TableField("bank_branches")
    @ApiModelProperty("银行网点")
    @Excel(name = "银行网点")
    private String bankBranches;

    /** 网点名称 */
    @TableField("branche_name")
    @ApiModelProperty("网点名称")
    @Excel(name = "网点名称")
    private String brancheName;

    /** 开户行地址 */
    @TableField("open_bank_address")
    @ApiModelProperty("开户行地址")
    @Excel(name = "开户行地址")
    private String openBankAddress;

    @ApiModelProperty ("开户行地址及电话")
    @TableField ("add_and_tel")
    private String addAndTel;


    /** 银联号 */
    @TableField("union_pay_account")
    @ApiModelProperty("银联号")
    @Excel(name = "银联号")
    private String unionPayAccount;

    /** 币别 */
    @TableField("currency")
    @ApiModelProperty("币别")
    @Excel(name = "币别")
    private String currency;

    /** 币别 */
    @TableField("swift_code")
    @ApiModelProperty("swiftCode")
    @Excel(name = "swiftCode")
    private String swiftCode;

    /** 币别 */
    @TableField("desc_info")
    @ApiModelProperty("描述")
    @Excel(name = "描述")
    private String descInfo;

    /** 是否默认 */
    @TableField("is_default")
    @ApiModelProperty("是否默认(1是 2否)")
    @Excel(name = "是否默认")
    private String isDefault;

    @ApiModelProperty ("关联客户/供应商Id")
    @TableField ("relation_id")
    private String relationId;

    @ApiModelProperty ("类型：1、客户;2、供应商;3、烈阳公司(子公司)Id")
    @TableField ("type")
    private Integer type;

    @TableField ("create_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTime;

    @TableField ("change_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;


}
